package org.jsola.hr.web;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Result;
import org.jsola.hr.dto.SocAccountDTO;

import java.util.List;


/**
 * @author lyh
 */
@Api(tags = "hr-社保账户缓存相关")
public interface ISocCacheControllerAPI {


    /**
     * 登陆的社保账户入缓存
     * @param socAccountDTO 账户信息
     * @return code
     */
    @ApiOperation(value = "登陆的社保账户入缓存")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "socAccountDTO", dataType = "SocAccountDTO", value = "账户信息", paramType = "body")
    })
    Result<String> setSocAccountCache(SocAccountDTO socAccountDTO);

    /**
     * 获取社保账号信息
     * @param areaId 地区Id
     * @return 社保账号信息
     */
    @ApiOperation(value = "获取社保账号信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "areaId", dataType = "String", value = "地区Id", paramType = "query")
    })
    Result<List<SocAccountDTO>> getSocAccount(String areaId);

    /**
     * 小程序是否显示
     * @param deceive 是否显示
     * @return 是否显示
     */
    @ApiOperation(value = "小程序是否显示")
    Result<Boolean> deceive(Boolean deceive);
}
